<?php

/**
 * @filename ErrorController.php 
 * @encoding UTF-8 
 * @author KangShuAn
 * @datetime 2014-10-22 15:13:12
 * @version 1.0
 * @Description 错误页面
 */
class ErrorController extends Controller{
    /**
     * 错误首页
     */
    public function actionIndex(){
        $this->smarty->display('error/index.tpl');
    }
    /**
     * 404页面
     */
    public function action404(){
        $this->smarty->display('error/404.tpl');
    }
    /**
     * 提示页面
     */
    public function actionAlert(){
        $this->smarty->assign('note', '无权访问，请联系管理员');
        $this->smarty->display('error/alert.tpl');
    }
    /**
     * 禁止访问，无权访问
     */
    public function actionForbid(){
        $this->smarty->assign('note', '无权访问，请联系管理员');
        $this->smarty->display('error/alert.tpl');
    }
}
